package com.sinog.biz.service.business;

import com.sinog.core.utilbean.Result;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;

/**
 * @desc 定时清洗的服务
 * @author - ybl
 * @date - 2022/10/10
 */
@RestController
public interface TimingeExecuteSqlService {

    /**
     * 查看全部的定时SQL
     * @param map 前台传参
     * @return String
     */
    @GetMapping("/azbj/dsqx/selectAll")
    String selectTimingSql(@RequestParam Map<String,Object> map);

    /**
     * 删除指定的SQL
     * @param id ID
     * @return Result
     */
    @DeleteMapping("/azbj/dsqx/{id}")
    Result delSql(@PathVariable String id);

    /**
     * 增加SQL
     * @param map 前台传参
     * @return Result
     */
    @PostMapping("/azbj/dsqx/addSql")
    Result addSql(@RequestParam Map<String,Object> map);
}